package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-10-30
 * Time: 16:59
 */
public class Test2 {
    public int number;
    public String  name;
    public int money;
    public Test2(){
        this.number = 1;
        this.name = "2";
        this.money = 0;
    }
    public Test2(int number, String name, int money){
        this.number = number;
        this.name = name;
        this.money = money;

    }
    public void print(){
        System.out.println("序号："+this.number+this.name+"的价格："+this.money);
    }

    public static void main(String[] args) {
        Test2 test1 = new Test2(1,"zhang",3);
        Test2 test2 = new  Test2(1,"4",5);
        test1.print();
        test2.print();

    }
}
